package com.zgtech.kernel.configserver.configserver.model.mapped;

import lombok.Data;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import java.io.Serializable;

@Data
@Table("config_properties")
public class ConfigProperties implements Serializable {

    @Name
    @Column(value = "id", wrap = true)
    private String id;

    @Column("application")
    @Comment("项目名称")
    private String application;

    @Column("profile")
    @Comment("部署环境")
    private String profile;

    @Column("label")
    @Comment("配置版本")
    private String label;

    @Column("key_value_json")
    @Comment("json")
    private String keyValueJson;
}
